<%--
  Created by IntelliJ IDEA.
  User: 15426
  Date: 2023/11/23 0023
  Time: 16:05
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>item list</title>
</head>
<body>
${list1}
用户列表界面：
<table border="1">
    <caption>商品列表</caption>
    <tr>
        <td>序号</td>
        <td>名称</td>
        <td>价格</td>
        <td>描述</td>
        <td>日期</td>
        <td>操作</td>
        <td>操作</td>
    </tr>
    <c:forEach items="${list}" var="itemlist">
        <tr>
            <td>${itemlist.id}</td>
            <td>${itemlist.itname}</td>
            <td>${itemlist.price}</td>
            <td>${itemlist.detail}</td>
            <td>${itemlist.createtime}</td>
            <td><a href="${pageContext.request.contextPath}/item/delete.do?id=${itemlist.id}">删除</a> </td>
            <td><a href="${pageContext.request.contextPath}/item/edit.do?id=${itemlist.id}">编辑</a> </td>
        </tr>
    </c:forEach>
</table>
</body>
</html>
